<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Fpu_rename.html">
<link rel="next" href="Interval.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Fpu" rel="Chapter" href="Fpu.html">
<link title="Fpu_rename" rel="Chapter" href="Fpu_rename.html">
<link title="Fpu_rename_all" rel="Chapter" href="Fpu_rename_all.html">
<link title="Interval" rel="Chapter" href="Interval.html"><title>Fpu_rename_all</title>
</head>
<body>
<div class="navbar"><a href="Fpu_rename.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="Interval.html">Next</a>
</div>
<center><h1>Module <a href="type_Fpu_rename_all.html">Fpu_rename_all</a></h1></center>
<br>
<pre><span class="keyword">module</span> Fpu_rename_all: <code class="code">sig</code> <a href="Fpu_rename_all.html">..</a> <code class="code">end</code></pre>Aliases floating point functions to their "constant" counterparts.
<p>

As described in the <code class="code">Fpu</code> module documentation, there are problems when mixing
some C-lib or ocaml native functions with interval programming on 64 bits machine.
<p>

The standard floating point functions results will always lie in the <code class="code">low; high</code> 
interval computed by the Fpu module, but they are slightly different on 32 and 64 
bits machines.
<p>

Using <code class="code">Open Fpu_rename_all</code> at the beginning of your program guarantees that floating 
computation will give the same results on 32 and 64 bits machines. This is not 
mandatory but might help.
<p>

NB: while most transcendantal function are almost as fast, and sometimes faster than
their "standard" ocaml counterparts, +. -. *. and /. are much slower (from 50% to 100%
depending on the processor. If you want to rename transcendantal functions but not
+. -. *. and /. then use the <code class="code">Fpu_rename</code> module.<br>
<hr width="100%">
<pre><span id="VAL(+.)"><span class="keyword">val</span> (+.)</span> : <code class="type">float -> float -> float</code></pre><div class="info">
Computes x + y<br>
</div>
<pre><span id="VAL(-.)"><span class="keyword">val</span> (-.)</span> : <code class="type">float -> float -> float</code></pre><div class="info">
Computes x - y<br>
</div>
<pre><span id="VAL(/.)"><span class="keyword">val</span> (/.)</span> : <code class="type">float -> float -> float</code></pre><div class="info">
Computes x / y<br>
</div>
<pre><span id="VAL( *. )"><span class="keyword">val</span> ( *. )</span> : <code class="type">float -> float -> float</code></pre><div class="info">
Computes x * y<br>
</div>
<pre><span id="VALmod_float"><span class="keyword">val</span> mod_float</span> : <code class="type">float -> float -> float</code></pre><div class="info">
Computes x mod y<br>
</div>
<pre><span id="VALsqrt"><span class="keyword">val</span> sqrt</span> : <code class="type">float -> float</code></pre><div class="info">
square root function<br>
</div>
<pre><span id="VALlog"><span class="keyword">val</span> log</span> : <code class="type">float -> float</code></pre><div class="info">
log function<br>
</div>
<pre><span id="VALexp"><span class="keyword">val</span> exp</span> : <code class="type">float -> float</code></pre><div class="info">
exp function<br>
</div>
<pre><span id="VAL( ** )"><span class="keyword">val</span> ( ** )</span> : <code class="type">float -> float -> float</code></pre><div class="info">
Computes x^y<br>
</div>
<pre><span id="VALcos"><span class="keyword">val</span> cos</span> : <code class="type">float -> float</code></pre><div class="info">
Computes cos(x) for x in [-2^63, 2^63]<br>
</div>
<pre><span id="VALsin"><span class="keyword">val</span> sin</span> : <code class="type">float -> float</code></pre><div class="info">
Computes sin(x) for x in [-2^63, 2^63]<br>
</div>
<pre><span id="VALtan"><span class="keyword">val</span> tan</span> : <code class="type">float -> float</code></pre><div class="info">
Computes tan(x) for x in [-2^63, 2^63]<br>
</div>
<pre><span id="VALasin"><span class="keyword">val</span> asin</span> : <code class="type">float -> float</code></pre><div class="info">
arc-sinus function<br>
</div>
<pre><span id="VALacos"><span class="keyword">val</span> acos</span> : <code class="type">float -> float</code></pre><div class="info">
arc-cosine function<br>
</div>
<pre><span id="VALatan2"><span class="keyword">val</span> atan2</span> : <code class="type">float -> float -> float</code></pre><div class="info">
atan2 function<br>
</div>
<pre><span id="VALatan"><span class="keyword">val</span> atan</span> : <code class="type">float -> float</code></pre><div class="info">
arc-tan function<br>
</div>
<pre><span id="VALcosh"><span class="keyword">val</span> cosh</span> : <code class="type">float -> float</code></pre><div class="info">
cosh function<br>
</div>
<pre><span id="VALsinh"><span class="keyword">val</span> sinh</span> : <code class="type">float -> float</code></pre><div class="info">
sinh function<br>
</div>
<pre><span id="VALtanh"><span class="keyword">val</span> tanh</span> : <code class="type">float -> float</code></pre><div class="info">
tanh function<br>
</div>
</body></html>